package com.firestone.bean.entity.elasticsearch.dm;

import com.firestone.bean.entity.elasticsearch.nested.WeightJson;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.*;

import java.io.Serializable;
import java.util.List;

/**
 * @author dingjc
 * @Description：TODO(数据工厂 dm_GLP认证表 Elasticsearch bean)
 *               DM数据工厂ES表不由该系统维护，请将createIndex设为false，避免系统启动时修改了大数据维护表的索引
 * @date 2018年04月18日  下午 1:42
 */
@Document( indexName = "dm_map_glp" ,type = "index",createIndex = true)
@Setting(settingPath = "/setting/setting.json")
public class DmMapGlp implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    /**
     * @Fields SYS_add_time : TODO(添加时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String SYS_add_time;

    /**
     * @Fields SYS_add_time : TODO(检验时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String SYS_check_time;

    /**
     * @Fields SYS_add_time : TODO(更改时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String SYS_dm_update_time;

    /**
     * @Fields certification_documents_number : TODO(认证批件编号)
     */
    @Field(type = FieldType.keyword)
    private String certification_documents_number;

    /**
     * @Fields institution_name: TODO(机构名称)
     */
    @Field(type = FieldType.text, analyzer = "ik_max_word")
    private String institution_name;

    /**
     * @Fields test_item: TODO(试验项目)
     */
    @Field(type = FieldType.text, analyzer = "ik_max_word")
    private String test_item;

    /**
     * weight_json:TODO(字段来源)
     */
    @Field(type = FieldType.Nested)
    private List<WeightJson> weight_json;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSYS_add_time() {
        return SYS_add_time;
    }

    public void setSYS_add_time(String SYS_add_time) {
        this.SYS_add_time = SYS_add_time;
    }

    public String getSYS_check_time() {
        return SYS_check_time;
    }

    public void setSYS_check_time(String SYS_check_time) {
        this.SYS_check_time = SYS_check_time;
    }

    public String getSYS_dm_update_time() {
        return SYS_dm_update_time;
    }

    public void setSYS_dm_update_time(String SYS_dm_update_time) {
        this.SYS_dm_update_time = SYS_dm_update_time;
    }

    public String getCertification_documents_number() {
        return certification_documents_number;
    }

    public void setCertification_documents_number(String certification_documents_number) {
        this.certification_documents_number = certification_documents_number;
    }

    public String getInstitution_name() {
        return institution_name;
    }

    public void setInstitution_name(String institution_name) {
        this.institution_name = institution_name;
    }

    public String getTest_item() {
        return test_item;
    }

    public void setTest_item(String test_item) {
        this.test_item = test_item;
    }

    public List<WeightJson> getWeight_json() {
        return weight_json;
    }

    public void setWeight_json(List<WeightJson> weight_json) {
        this.weight_json = weight_json;
    }
}
